import service from '@/utils/request'

export const useGroupApi = (id: number) => {
	return service.get('/im/group/' + id)
}

export const useGroupBanApi = (data: any) => {
	return service.put('/im/group/ban',data)
}

export const useGroupUnbanApi = (data: any) => {
	return service.put('/im/group/unban',data)
}

export const useGroupFindByNameApi = (name: String) => {
	return service.get('/im/group/findByName?name=' + name)
}

